package com.simple.gateway.pay.strategy;

import javax.servlet.http.HttpServletRequest;
import java.util.Map;

/**
 * @description: 签名策略
 * @author: Mr.Kang
 * @create: 2021-04-10 11:39
 **/
public interface SignStrategy<R> {
    /**
     * 一旦有兴趣就处理它
     * @param request
     * @return
     */
    R requestSign(HttpServletRequest request);


    /**
     *
     * @param dataMap
     * @return
     */
    R responseSign(Map<String,Object> dataMap,HttpServletRequest request,Long ts);
}
